import { createRouter, createWebHistory } from "vue-router";

// 导入Home组件
import Home from '../components/home/Home.vue';
// 导入Order组件
import Order from '../components/order/Order.vue';
// 导入User组件
import User from '../components/user/User.vue';
// 导入login组件
import Login from '../components/login/login.vue';
// 导入City组件
import City from '../components/city/City.vue';

const routes = [
	{
		path : '/',
		name : 'Home',
		component : Home
	},
	{
		path : '/order',
		name : 'order',
		component : Order
	},
	{
		path : '/user',
		name : 'User',
		component : User
	},
	{
		path : '/login',
		name : 'Login',
		component : Login
	},
	{
		path : '/City',
		name : 'City',
		component : City
	}
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
